.PHONY: all
all:
	@cd Compile_Server;\
	make;\
	cd -;\
	cd Oj_Server;\
	make;\
	cd -;

.PHONY:output
output:
	@mkdir -p output/compile_server;\
	mkdir -p output/oj_server;\
	cp -rf Compile_Server/compiler_server output/compile_server;\
	cp -rf Compile_Server/temp output/compile_server;\
	cp -rf Oj_Server/conf output/oj_server/;\
	cp -rf Oj_Server/lib output/oj_server/;\
	cp -rf Oj_Server/questions output/oj_server/;\
	cp -rf Oj_Server/ctemplate output/oj_server/;\
	cp -rf Oj_Server/wwwroot output/oj_server/;\
	cp -rf Oj_Server/oj_server output/oj_server/;

.PHONY:clean
clean:
	@cd Compile_Server;\
	make clean;\
	cd -;\
	cd Oj_Server;\
	make clean;\
	cd -;\
	rm -rf output;